﻿@model CodeCamp.Models.EventMgmt.SponsorEditModel

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    @Html.HiddenFor(model => model.SponsorId)
    <fieldset>

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Url)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Url)
            @Html.ValidationMessageFor(model => model.Url)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ImageUrl)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ImageUrl)
            @Html.ValidationMessageFor(model => model.ImageUrl)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ImageWidth)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ImageWidth)
            @Html.ValidationMessageFor(model => model.ImageWidth)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ImageHeight)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ImageHeight)
            @Html.ValidationMessageFor(model => model.ImageHeight)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}
